﻿using ChinaCircleJerk.Data.Model;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChinaCircleJerk.Data
{
    public class ChinaCircleJerkDbContext : IdentityDbContext<ApplicationUser>
    {
        public ChinaCircleJerkDbContext()
            : base("CCJerkConnection", throwIfV1Schema: false)
        {

        }
        public DbSet<Post> Posts { get; set; }
        public DbSet<Reply> Replies { get; set; }
        public DbSet<LookUp> LookupTable { get; set; }
        public static ChinaCircleJerkDbContext Create()
        {
            return new ChinaCircleJerkDbContext();

        }
    }
}
